<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@include file="/WEB-INF/jsp/include/front.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=css%>/front/shijuan.css" />
<title>好教师联盟-试卷详情</title>
<script type="text/javascript" src="<%=js%>/front/jquery.media.js"></script>
<script>
$(document).ready(function(){
	$("#top_paper").addClass("active");
	$('a.media').media({width:800, height:600});
});
//下载功能
function toDownload(storeName, realName) {
	document.getElementById('storeName').value = storeName;
	document.getElementById('realName').value = realName;
	document.getElementById('downForm').submit();
}
</script>
</head>
<body>
<%@include file="/WEB-INF/jsp/front/home/top.jsp"%>
<!-- 内容 -->
<div class="content">
	<div class="wrap">
		<div class="top-head">
			<ul>
				<li><a href="#">首页 / </a></li>
				<li><a href="#"><span>试卷</span>/</a></li>
				<li><a href="#"><span>试卷详情</span></a></li>
			</ul>
		</div>
		<div class="clear"></div>
		<div class="sjinfo">
			<div class="namepdf">
				<div class="sjname">${bean.name }</div>
				<div class="t_downpdf">
					<c:choose>
						<c:when test="${bean.wordpath == '' }">
							<a href="javascript:void();" class="downloadbtn" onclick="javascript:toDownload('${bean.sjpath}','${bean.name}');">下载试卷</a>
						</c:when>
						<c:otherwise>
							<a href="javascript:void();" class="downloadbtn" onclick="javascript:toDownload('${bean.wordpath}','${bean.name}');">下载试卷</a>
   						</c:otherwise> 
					</c:choose>
				</div>
				<div class="clear"></div>
			</div>
			<div class="sjpdf">
				<a class="media" href="<%=upload%>/${bean.sjpath}"></a> 
			</div>
			<div class="b_downpdf">
			
				<c:choose>
					<c:when test="${bean.wordpath == '' }">
						<a href="javascript:void();" class="downloadbtn" onclick="javascript:toDownload('${bean.sjpath}','${bean.name}');">下载试卷</a>
					</c:when>
					<c:otherwise>
						<a href="javascript:void();" class="downloadbtn" onclick="javascript:toDownload('${bean.wordpath}','${bean.name}');">下载试卷</a>
  						</c:otherwise> 
				</c:choose>
			</div>			
			<div>
				<form id="downForm" action="<%=pre%>/paper/download<%=suf%>" method="post">
					<input type="hidden" name="storeName" id="storeName" value="" /> 
					<input type="hidden" name="realName" id="realName" value="" />
				</form>
			</div>	
			<div class="clear"></div>
		</div>
	</div>
</div>
<div style="clear:both;"></div>
<%@include file="/WEB-INF/jsp/front/home/footer.jsp"%>
</body>
</html>